<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: imist
  Date: 2018/8/14
  Time: 下午8:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <meta >
</head>
<body>

<img src="code.jsp" alt="" id="code">
<a href="javascript:void(0);" onclick="changeCode()"> 看不清？换一张</a>

<script>
    function changeCode() {
        document.getElementById("code").src="code.jsp?date="+<%=new Date().getTime()%>;
    }
</script>
</body>
</html>
